package com.zf.jetcache.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 我们配置的jetcache写入远程时使用的jdk的序列化，所以要实现 Serializable 接口
 */
@Data
public class Product implements Serializable {
    private Long id;
    private String name;
    private BigDecimal price;
    private LocalDateTime testLocalDate = LocalDateTime.now();
}
